

import 'package:flutter/material.dart';

void main() {
  runApp(//这里时创建了一个runapp对象，本质上是new runapp(),new给省略了
      CLMyapp()
  );
}
class CLMyapp extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
        home: CLhome()
    );
  }
}
class CLhome extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build

    return Scaffold(
        appBar: AppBar(
          title:Text("第一个flutter程序") ,
        ),
        body: CLbody()
    );
  }
}
class CLbody extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return const Center(
      child: Text(
          "hello world",
          style:TextStyle(
              fontSize: 40 ,
              color: Colors.pink
          )
      ),
    );
  }
}